﻿using System.Collections.Generic;
using System.Data;
using System.IO;
using UnityEditor;
using UnityEditor.AddressableAssets;
using UnityEditor.AddressableAssets.Settings;
using UnityEditor.Compilation;
using UnityEngine;
using UnityEngine.AddressableAssets;

public class XBuildWindow : EditorWindow
{
    [MenuItem("XAddresables/Build")]
   private static void Init()
    {
        XBuildWindow window = EditorWindow.GetWindow<XBuildWindow>();
    }

    private void OnGUI()
    {
        if (GUILayout.Button("Mark Address"))
        {
            XBuildContentEditor.MarkAddress();
            Debug.Log("Mark Address");
        }
        if (GUILayout.Button("Build Content"))
        {
            XBuildContentEditor.DefaultBuildScript();
            Debug.Log("Build Content");
        }
    }
}
